<?php
/**
 * Tabs on organization profile
 *
 * @uses $vars['entity'], $vars['section']
 */
$org = $vars['entity'];
$baseUrl = $org->getUrl();

//Tabs Sections
$tabOptions = array(
	//General
	array
	(
		'title' 	=> 'General',
		'url' 		=> $baseUrl,
		'id' 		=> 'general',
		'selected'	=> $vars['section'] ? false : true
	),
	
	//Stats
	array
	(
		'title' 	=> 'Estadisticas',
		'url' 		=> $baseUrl.'/stats/',
		'id' 		=> 'stats',
		'selected'	=> $vars['section'] == 'stats' ? true : false
	),
	
	//Tournaments
	array
	(
		'title' 	=> 'Torneos',
		'url' 		=> $baseUrl.'/tournaments/',
		'id' 		=> 'tournaments',
		'selected'	=> $vars['section'] == 'tournaments' ? true : false
	),
	
	/* TODO: Estructura vacias creadas (página y formulario)
	//Contact
	array
	(
		'title' 	=> 'Contacto',
		'url' 		=> $baseUrl.'/contact/',
		'id' 		=> 'contact',
		'selected'	=> $vars['section'] == 'contact' ? true : false
	),
	/* */
);

echo elgg_view('navigation/tabs',array("tabs" => $tabOptions));
?>

<script type="text/javascript">
	elgg.org.loadAjaxTabs();
</script>
